package cate.game.common.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBCommon;
import cp.solution.util.time.TimeSpanType;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "跨天/跨周/跨月 の 广播")
public class TimeSpanResp implements MsgOutput {
    @NoteField(value = "时间事件", detail = "1跨天 2跨周 3跨月")
    public int type;

    @NoteField(value = "服务器当前时间")
    public long time;


    public TimeSpanResp(){

    }

    public TimeSpanResp(TimeSpanType type){
        this.type = type.type;
        this.time = System.currentTimeMillis();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBCommon.TIME_SPAN_RESP;
    }
}
